import tool from "@/utils/tool";
import userApi from "@/api/sys/user";

let userInfo = {};
let scheduledTask = true;

export default {
    onLoad() {
        // this.loadUserInfo()
        //#ifdef APP-PLUS
        if (!scheduledTask){
            return;
        }
        scheduledTask = false;
        //#endif
    },
    async loadUserInfo() {
        await userApi.getUserInfo().then(res => {
            userInfo = res.data
        })
    },
}